﻿@using Webdiyer.WebControls.Mvc
@model PagedList<School.Models.ywshowSet>

@{
    Layout = "~/Views/Shared/_yyfc.cshtml";
}

  <div class="center">
            	<ul class="center-title">
            		<li><a href="@Url.Action("Index","yyfc")">学院风采</a></li>
                    <li class="active"><a href="@Url.Action("Index2","yyfc")">校园电子报</a></li>
            	</ul>
                <div class="center">

                    <div class="center_body fl">
                    @{
                        int k=1;
                        foreach(var item in Model)
                        {
                            
                            <div>
                            <p><a href="">@Html.ActionLink((k++).ToString() + "." + item.title, "Detials", new { id = item.ID })</a></p>
                            <span>@item.time</span>&nbsp&nbsp&nbsp&nbsp&nbsp消息出自：&nbsp&nbsp<span>@item.writer</span>
                        </div> 
                        <center><p> @Html.Pager(Model,
                        new PagerOptions
                        {
                            NextPageText = "下一页",
                            PrevPageText = "上一页",
                            FirstPageText = "首页",
                            LastPageText = "末页",
                            PageIndexParameterName = "NewMes",
                            CssClass = "pages",
                            CurrentPagerItemWrapperFormatString = "<span class=\"cpb\">{0}</span>",
                            NumericPagerItemWrapperFormatString = "<span class=\"item\">{0}</span>",
                            NumericPagerItemCount = 6
                        },
                null,
                new
                {
                    id = ViewBag.columnId,
                    classId = ViewBag.classId
                })
                </p></center>  
                        }
                        }
                         
                    </div>
                </div>
            </div>
        